import 'package:flutter/material.dart';

///**
///* Description: 蛛网图model
///*/
///蜘蛛网图表数据模型
class CobwebChartDataModel {
  ///数据名称
  String name;

  ///副标题
  String subTitle;

  ///数据值(0.0 - 1.0),一百的百分比
  double value;

  CobwebChartDataModel({@required this.name, @required this.value, @required this.subTitle}) {
    if (value != null) {
      if (value > 1.0) {
        value = 1.0;
      }
      if (value < 0.0) {
        value = 0.0;
      }
    }
  }
}
